<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="Content-Language" content="UTF-8">
    <style type="text/css">
        body,
        div,
        p {
            margin: 0px;
            padding: 0px
        }

        #page {
            width: 600px;
            background-color: #FFFFFF;
            border: 1px solid #cccccc;
            margin: auto;
        }

        #main {
            width: 540px;
            margin: auto;
        }

        #main p {
            color: #000000;
            font-size: 16px;
            margin: 10px 0px 5px 0px;
        }

        .content {
            margin: 0;
            padding: 0;
            border-top: 1px solid #cccccc;
        }

        .message {
            height: 124px;
            padding: 22px 0px 22px 0px;
        }

        .result {
            height: 34px;
            line-height: 34px;
        }

        #msg {
            float: left;
        }

        .button {
            text-align: center;
            padding-top: 40px;
        }

        .blue-btn {
            color: #FFFFFF;
            background-color: #2C5C76;
            font-size: 15px;
            display: inline-block;
            cursor: pointer;
            text-align: center;
            width: 40px;
            height: 34px;
            line-height: 34px;
            text-decoration: none;
        }

        #close {
            border: 1px solid #ccc;
            background-color: #eff2f4;
            color: #000;
            width: 110px;
            height: 28px;
            line-height: 28px;
        }

    </style>
</head>

<body>
    <div id="page" class="page">
        <div id="main" class="main">

        </div>
    </div>
</body>
<script type="text/javascript">
    (function (win) {
        /**
         * 获取请求参数
         * @param {*} param
         * @returns
         */
        function getUrlParam(param) {
            var reg = new RegExp("(^|&)" + param + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substring(1).match(reg); //匹配目标参数
            if (r != null) return decodeURI(r[2]);
            return null; //返回参数值
        }

        function t(text) {
            if (window.__i18n__) {
                try {
                    var json = window.__i18n__.resources[window.__i18n__.locale]['translation']
                    return json[text]
                } catch (err) {}
            } else {
                return text
            }
        }
        document.title = t(window.__COMPANY_INFO_i18n_key.title)
        var html = '<p>' + t('提示') + '</p>' +
            '<div class="content"></div>' +
            '<div class="message">' +
            '<div class="result">' +
            '<span id="msg"></span>' +
            '</div>' +
            '<div class="button">' +
            '<div>' +
            '<a id="close" class="blue-btn">' + t('关闭窗口') + '</a>' +
            '</div>' +
            '</div>' +
            '</div>'
        document.getElementById('main').innerHTML = html
        var message = getUrlParam('message')
        document.getElementById("msg").innerHTML = message
        var btn = document.getElementById("close");
        btn.onclick = function () {
            // window.close();
            if (navigator.userAgent.indexOf('MSIE') > 0) { // close IE
                if (navigator.userAgent.indexOf('MSIE 6.0') > 0) {
                    window.opener = null;
                    window.close();
                } else {
                    window.open('', '_top');
                    window.top.close();
                }
            } else { // close chrome;It is effective when it is only one.
                window.opener = null;
                window.open('', '_self');
                window.close();
            }
        };
    })(window);

</script>

</html>
